package cmd

import "github.com/spf13/cobra"

func genLinkCmd() *cobra.Command {
	linkCmd := &cobra.Command{
		Use:   "link",
		Short: "Test the file repetition rate And Delete the duplicate file, Only Save first one, Create others as hard link",
		Long:  `Test the file repetition rate And Delete the duplicate file, Only Save first one, Create others as hard link.`,
		Run: func(cmd *cobra.Command, args []string) {
			cleaner := genLinkFileCleaner()
			cleaner.run()
		},
	}

	return linkCmd
}
